package com.four.treatment.controller;

import com.four.common.utils.R;
import com.four.treatment.entity.Archives;
import com.four.treatment.service.ArchivesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:wsy
 * @Date: 2022/01/17/20:18
 * @Description
 */
@RestController
@RequestMapping("/treatment/archives")
public class ArchivesController {

    @Autowired
    private ArchivesService archivesService;

    /**
     * 添加档案
     * @param archives
     * @return
     */
    @PostMapping("/addArchives")
    public R addArchives(@RequestBody Archives archives){
        archivesService.addArchives(archives);
        return R.ok("成功");
    }
}
